PAssignLayer

Assigns the currently selected objects from one layer to another layer.

This command is new in PageMaker 6.5


Command constructor

This command has two constructors.

PAssignLayer(const char * sToLayer);
const char * sToLayer;
Name of the layer to assign selected items to. All selected objects on any layer are assigned to this layer.
PAssignLayer(const char * sFromLayer, const char * sToLayer);
const char * sFromLayer;
Name of the layer to take selected items from. Only items from this layer will be reassigned to the new layer.
const char * sToLayer;
Name of the layer to assign selected items to.
Example. The following example assigns all of the currently selected objects to the layer named "MyLayer".

PAssignLayer("MyLayer");


See also

The PDeleteLayer, PDeleteUnusedLayers, PLayerOptions, PLockLayers, PMoveLayer, PNewLayer, PPasteRemembers, PSelectLayer, PShowLayers, and PTargetLayer commands

The PGetLayerFromID, PGetLayerList, PGetLayerOptions, PGetPasteRemembers, and PGetTargetLayer queries


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support